# Contributor: Galen Abell <galen@galenabell.com>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=py3-pysonic
_pyname=py-sonic
pkgver=0.7.9
pkgrel=2
pkgdesc="Python library to wrap the Subsonic REST API"
url="https://github.com/crustymonkey/py-sonic"
arch="noarch"
license="GPL-3.0-only"
options="!check" # no tests
depends="python3"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pyname%${_pyname#?}}/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="4a89537f12cb2f0cdecbdf48a9f8593e734dbfb181855bdbb6306e26e7b62a3acbb66dec7beb13f08b0c92c75fbd6a1ba766ce898445b360f6616fe7fbc327d3  py-sonic-0.7.9.tar.gz"
